import API from './api'

export default {
  getChatList(params, callback, errorCallback) {
    API.post('/live/liveChat/getChatList', params, callback, errorCallback)
  },
  // 添加聊天
  addChat(params, callback, errorCallback){
    API.post('/live/liveChat/addChat', params, callback, errorCallback)
  },
  // 通过mq发送websocket 消息
  socketSendByMq(params, callback, errorCallback){
    API.post('/live/liveChat/socketSendByMq', params, callback, errorCallback)
  },
  // 通过mq关闭websocket通道
  socketRemoveByMq(params, callback, errorCallback){
    API.post('/live/liveChat/socketRemoveByMq', params, callback, errorCallback)
  },
  // 私人界面查询聊天提问信息
  getChatListOnPerson(params, callback, errorCallback){
    API.post('/live/liveChat/getChatListOnPerson', params, callback, errorCallback)
  }
}
